import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import './registerServiceWorker'
import router from './router'
import axios from "axios";
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import store from './store'
import VueCookies from 'vue-cookies'


const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(store).use(ElementPlus).use(router).config.globalProperties.$axios = axios
app.config.globalProperties.$store = store
app.config.globalProperties.$cookies = VueCookies
app.mount('#app')
